package com.biallen.datastructure.linkedlist;

import com.biallen.datastructure.entity.HeroNode;
import com.biallen.datastructure.entity.HeroNode2;

public class DoubleListDemo {

    public static void main(String[] args) {
        DoubleLinkedList doubleLinkedList = new DoubleLinkedList();
        doubleLinkedList.add(new HeroNode2(1, "宋江", "及时雨"));
        doubleLinkedList.add(new HeroNode2(3, "吴用", "智多星"));
        doubleLinkedList.add(new HeroNode2(5, "关胜", "大刀"));
        doubleLinkedList.add(new HeroNode2(6, "林冲", "豹子头"));
        doubleLinkedList.add(new HeroNode2(4, "公孙胜", "入云龙"));
        doubleLinkedList.add(new HeroNode2(2, "卢俊义", "玉麒麟"));
        doubleLinkedList.showList();
        doubleLinkedList.delNode(new HeroNode2(5, "关胜", "大刀"));
        doubleLinkedList.showList();
    }
}
